package com.newway.back.entity.approval;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.newway.back.enums.ApprovalActionEnum;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("approval_records")
public class ApprovalRecord {
    @TableId(type = IdType.AUTO)
    private Integer recordId;
    
    private Integer instanceId;
    private Integer nodeId;
    private Integer approverId;
    
//    @EnumValue
//    private ApprovalActionEnum action;  // 枚举见下方
    private String action;
    
    private String comment;
    private LocalDateTime createdAt;
}